#ifndef MOVEABLEPLATFORMELEMENT_HPP
#define MOVEABLEPLATFORMELEMENT_HPP

#include <Box2D.h>

#include "ActionableElement.hpp"
#include "RoomElement.hpp"

class MoveablePlatformElement : public ActionableElement {
protected:
    virtual void turnOn();
    virtual void turnOff();

public:
    b2Vec2* end;
    b2Vec2* linearVelocity;
    bool shouldBeMoved;
    b2Vec2* start;

    MoveablePlatformElement(const b2Vec2* vertices, int numberOfVertices, const b2Vec2 start, const b2Vec2 end, float velocity, RoomElement* room, b2World* world);

    virtual bool isMoveablePlatform();
};

#endif
